<?php
if($_GET['action']=="logout"){
    header('Refresh:3; url="login.php"');
    session_start();
    setcookie("cookiename", NULL);
    session_unset();
    session_destroy();
    echo "三秒后返回登入页面";
}
